// 问诊管理
import request from '@/utils/request'

export default {
  // 获取帖子分类
  queryClassification(params) {
    const url = 'socialized-expert/invitationType/queryByCondition'
    return request.post(url, params)
  },
  // 条件分页查询
  queryPageByCondition(params) {
    const url = 'socialized-expert/invitation/queryPageByCondition'
    return request.post(url, params)
  },
  // 修改帖子-加精置顶等
  updatePost(params) {
    const url = 'socialized-expert/invitation/edit'
    return request.put(url, params)
  },
  // 删除帖子
  delPost(params, id) {
    const url = `socialized-expert/invitation/del?id=${id}`
    return request.delete(url, params)
  }
}
